<!DOCTYPE html>
<html>
<head>
    <title>智慧校园</title>
    <!--   Layui的js-->
    <script type="text/javascript"
            th:src="@{/libs/layui/layui.js}"
            charset="utf-8"></script>
    <!--Layui的css-->
    <link rel="stylesheet"
          th:href="@{/libs/layui/css/layui.css}"
          media="all">

</head>
<body>
<div class="layui-col-md-offset1">
    <img th:src="@{imgs/title.jpg}" width="326" height="76">
</div>
<div class="layui-col-space20" style="position:relative">
    <div style="position:absolute; right: 5%; top:10%;background-color: white">
        <form class="layui-form" method="post" th:action="@{login}">
<!--        <form class="layui-form" action="">-->
            <div class="layui-form-item"><label class="layui-form-label" style="font-size: 20px">请登录</label></div>

            <p style="color:#ff1e00;" align="center" th:text="${error}"></p>


            <div class="layui-form-item">
                <label class="layui-form-label">邮箱：</label>
                <div class="layui-input-block">
                    <input type="text" name="email" value="" required lay-verify="required" placeholder="邮箱/用户名"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码：</label>
                <div class="layui-input-block">
                    <input type="password" name="password" required lay-verify="required" placeholder="密码"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">身份：</label>
                <div class="layui-input-block">
                    <select name="judge">
                        <option value="">请选择</option>
                        <option value="1">老师端</option>
                        <option value="2" selected>学生端</option>

                    </select>
                </div>
            </div>





            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input name="like1[write]" lay-skin="primary" title="记住密码" checked="" type="checkbox">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit>登录</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
    <div><img th:src="@{/imgs/banner1.png}" height="359"></div>
    <div class="layui-text" align="center">Copyright © 1999-2015 北京工商管理专修学院 版权所有</div>
</div>
<script>
    layui.use('form', function () {
        var form = layui.form;
    });
</script>
</body>
</html>
